package com.nacos.demo.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 服务提供者
 *
 * @author 夜曲sin
 * @create 2021/6/24
 */
@RestController
@RequestMapping("/provider")
public class ProviderController {

    private static final Logger log = LoggerFactory.getLogger(ProviderController.class);

    @GetMapping("/service1")
    public String service1() {
        log.info("ProviderController.service1() invoke...");
        return "hello,this is ProviderController.service1() invoke!";
    }
}
